-- card: 28709 from stack: in.2r -- bmap block id: 0 -- flags: 0000 -- background id: 3837 -- name: ScreenSize -- part 2 (button) -- low flags: 00 -- high flags: A004 -- rect: left=372 top=266 right=290 bottom=466 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: try me ----- HyperTalk script ----- on mouseUp if the optionkey is down then edit script of me put "This screen is "&ScreenSize("©1988SDrazga") end mouseUp -- part contents for background part 5 ----- text ----- ScreenSize -- part contents for background part 6 ----- text ----- This XFCN can be used to determine whether your stack is running on a regular size Macintosh screen or a larger Mac II or other monitor. This is useful in controlling the visible state of the menu bar. Most large screen users do not like their menu bar hidden, so before hiding a menu bar you can use the XFCN to determine if it is necessary. See also MenuBar* This XFCN is ©1988 by Steve Drazga and all rights are reserved. It may be used in any non-commercial, shareware, or commercial stacks as long as the following conditions are met: 1) Within the credits of the stack the phrase "Portions ©1988 Steve Drazga" should be included. 2) Send a copy of your finished stack to me at: Steve Drazga AnalytX Box 388 Southampton, PA 18966 The only compensation I receive will be seeing my efforts utilitized by others. If you need custom XCMDs/XFCNs, stacks, or HyperCard training for your organization contact Steve Drazga at AnalytX (215) 464-3733. -- part contents for background part 7 ----- text ----- Syntax: ScreenSize("©1988SDrazga") The XFCN will return either "small" if it is a regular size screen, or "large" if it is a larger screen. The only parameter that must be passed must is the copyright notice (the © symbol is option-g). -- part contents for background part 10 ----- text ----- 22